<template>
    <nav class="dee-nav">
        <div class="dee-nav-item" v-for="(item,index) in modulePermission" v-bind:key="index">
            <router-link :to="{name:item.en_name}">
                {{item.cn_name}}
            </router-link>
        </div>
    </nav>
</template>
<script>
  export default {
    props: {
      modulePermission: {
        type: [Array, Object]
      }
    },
    methods: {
      refreshHanle() {
        this.$router.go(0);
      }
    },
    beforeRouteUpdate(to, from, next) {
      console.log(111111);
    }
  };
</script>
<style scoped lang="scss">
@import "../../assets/scss/_mixins";
.dee-nav{
    display: flex;
    align-items: center;
    margin-left: 100px;
    flex: 1;
    min-width: 500px;
}
.dee-nav-item{
    padding: 0 10px;
}
.dee-nav a{
    color: rgba(255, 255, 255, 0.7);
    margin-right: 20px;
    cursor: pointer;
}
.dee-nav a:hover{
    color: #4fc3f7;
    border-bottom: 2px solid #4fc3f7;
    padding-bottom:10px;
}
.router-link-active {
    color: #4fc3f7!important;
    border-bottom: 2px solid #4fc3f7;
    padding-bottom:10px;
  }
</style>
